package com.huangqi.admin.system.controller;

import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Date;
import java.util.HashMap;
import java.util.Map;

/**
 * Created by HuangQi on 2018-01-11 19:09
 */
@RestController
@RequestMapping("/user/api")
public class UserController {

    @RequestMapping("/detail/{id}")
    public Object detail(@PathVariable("id") Integer id){

        Map<String,Object> responseEntity = new HashMap<>();
        responseEntity.put("code", 0);
        responseEntity.put("data", new Date());
        responseEntity.put("message","");
        return responseEntity;
    }

}
